package cn.itcast.dao.system;

import cn.itcast.domain.system.SysDict;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @AuThor：zengxing
 * @DATE:2020/12/23 17:30  250
 */
public interface SysDictDao {

    List<SysDict> findAll();

    void save(SysDict sysDict);

    void update(SysDict sysDict);

    void delete(String id);

    SysDict findById(String id);

    List<SysDict> findByType(String type);

    SysDict findByTypeAndCode(@Param("type")String type, @Param("code")Integer code);
}
